<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="table1" cellspacing="1">
	<!-- <tr>
		<td   colspan="4" class="t_bar">基本信息</td>
		
	</tr> -->
	<tr>
		<td   align="right" width="20%">项目名称：</td>
		<td  colspan="3">
			 <x:out select="$xmlData/data/proposal/zh_title" /> 
		</td>
	</tr>
	<tr>
		<td   align="right" width="20%">项目类别：</td>
		<td  colspan="3">
			<x:out select="$xmlData/data/proposal/sub_grant_name" /> 
		</td>
	</tr>
	<tr>
		<td   align="right" width="20%">申请金额（万元）：</td>
		<td  colspan="3">
			<x:out select="$xmlData/data/proposal/request_amt" />
		</td>
	</tr>
	<tr>
		<td   align="right" width="20%">项目实施地点：</td>
		<td  colspan="3">
			  <x:out select="$xmlData/data/proposal/address" />
		</td>
	</tr>
	<tr>
	<td align="right">研发形式：</td>
	<td nowrap  colspan="3" valign="middle">
		<x:out select="$xmlData/data/proposal/research_name" />
	</td>
	</tr>
	<tr>
	<td align="right">申报领域：</td>
	<td nowrap  colspan="3" valign="middle">
		<x:out select="$xmlData/data/proposal/domain_name" />
	</td>
	</tr>
	<%-- <tr>
	<td align="right">所属技术领域：</td>
	<td nowrap  colspan="3" valign="middle">
		<x:out select="$xmlData/data/proposal/technology_name" />
	</td>
	</tr> --%>
	<%-- <tr>
	<td  align="right" nowrap>申报领域：</td>
	<td colspan="3">
			<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			<c:set var="domain_value"><x:out select="$xmlData/data/proposal/domain_value" /></c:set>
			<cpt:checkbox key="grant_domain" name="domain" repeatColumn="4"  sqlParamVal="{'grant_code':'${grantCode}'}"></cpt:checkbox>
			<input type="hidden" name="proposal/domain_value"  value="${domain_value}" label="申报领域">
			<input type="hidden" name="proposal/domain_name" value="<x:out select="$xmlData/data/proposal/domain_name" />">
			
			 <c:if test="${grantCode =='108' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="01" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="工业" />
			</c:if>
			<c:if test="${grantCode =='110' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="02" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="农业" />
			</c:if>
			<c:if test="${grantCode =='111' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="03" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="社会发展" />
			</c:if> 
	</td>
	</tr>
	--%>
	<tr> 
	<td align="right">学科名称：</td>
   <td  colspan="3">
         <x:out select="$xmlData/data/proposal/subject_name" />
   </td>
	</tr>
	</tr>
	<tr>
		<td align="right">归口管理部门：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/recomend_org_name" />
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>开始日期：</td>
		<td >
			<x:out select="$xmlData/data/proposal/start_date" />
		</td>
		<td  align="right" nowrap>结束日期：</td>
		<td>
			<x:out select="$xmlData/data/proposal/end_date" />
		</td>
	</tr>
	<tr>
	    <td  align="right" nowrap width="20%">申报日期：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/submit_date" />
		</td>
	</tr>
	<tr>
		<td   align="right" width="20%">预期成果形式：</td>
		<td  colspan="3">
			<%-- <x:out select="$xmlData/data/proposal/exptresult_name" /> --%>
			<c:set var='str'>，<x:out select="$xmlData/data/proposal/exptresult_value" />，</c:set>
			<c:if test="${fn:contains(str, '，9004，')}"><span class="tu_biao1"></span>1、新产品（或农业新品种）</c:if><c:if test="${not fn:contains(str, '，9004，')}"><span class="tu_biao2"></span>1、新产品（或农业新品种）</c:if>
				<c:if test="${fn:contains(str, '，9005，')}"><span class="tu_biao1"></span>2、新装置</c:if><c:if test="${not fn:contains(str, '，9005，')}"><span class="tu_biao2"></span>2、新装置</c:if>
				<c:if test="${fn:contains(str, '，9006，')}"><span class="tu_biao1"></span>3、新材料</c:if><c:if test="${not fn:contains(str, '，9006，')}"><span class="tu_biao2"></span>3、新材料</c:if>
			    <c:if test="${fn:contains(str, '，9007，')}"><span class="tu_biao1"></span>4、新工艺（新方法、新模式）</c:if><c:if test="${not fn:contains(str, '，9007，')}"><span class="tu_biao2"></span>4、新工艺（新方法、新模式）</c:if>
				<c:if test="${fn:contains(str, '，9008，')}"><span class="tu_biao1"></span>5、计算机软件</c:if><c:if test="${not fn:contains(str, '，9008，')}"><span class="tu_biao2"></span>5、计算机软件</c:if>
				<br />
				<c:if test="${fn:contains(str, '，9009，')}"><span class="tu_biao1"></span>6、专利（含发明、实用外型、外观设计）</c:if><c:if test="${not fn:contains(str, '，9009，')}"><span class="tu_biao2"></span>6、专利（含发明、实用外型、外观设计）</c:if>
				<c:if test="${fn:contains(str, '9010，')}"><span class="tu_biao1"></span>7、其他（论文、论著、研究报告等）</c:if><c:if test="${not fn:contains(str, '，9010，')}"><span class="tu_biao2"></span>7、其他（论文、论著、研究报告等）</c:if>
		</td>
		</td>
	</tr>
	<tr>
		<td   align="right" width="20%">预期取得专利：</td>
		<td colspan="3" >
			<x:out select="$xmlData/data/proposal/exptpatent_name" />
		</td>
		</tr>
	</table>
	
	<div class="t_bar">全县（区、市）农民专业合作社情况（金额单位：万元）</div>
	<table class="t_css" width="100%" border="0" cellpadding="0" id="table2"	cellspacing="1">
		<!-- <tr>
			<td   colspan="4" class="t_bar" >全县（区、市）农民专业合作社情况（金额单位：万元）</td>
		</tr> -->
		<tr>
			<td   align="right" width="20%">县（区）：</td>
			<td  colspan="3" width="30%">
				<x:out select="$xmlData/data/cooperative/county" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">合作社数量：</td>
			<td  width="30%" style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/cooperative_count" />
			</td>
			<td   align="right" width="20%">百强社数量：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/baiqiang_count" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">合作社现有科技人员总数：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/tech_count" />
			</td>
			<td   align="right" width="20%">合作社现有科技特派员人员总数：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/special_count" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">是否为省级科技特派示范县：</td>
			<td  align="center">
				<x:out select="$xmlData/data/cooperative/is_special_name" />
			</td>
			<td   align="right" width="20%">科技特派员参与或领办的农民专业合作社总数：</td>
			<td style="text-align: center;" >
				<x:out select="$xmlData/data/cooperative/participate_count" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">主导（特色）产业：</td>
			<td  >
				<x:out select="$xmlData/data/cooperative/special_industry" />
			</td>
			<td   align="right" width="20%">主导（特色）产业产值：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/industry_value" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">主导（特色）农产品产量：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/industry_count" />（万吨）
			</td>
			<td   align="right" width="20%">年产值达500万元合作社数量：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/coop_count" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">合作社就业人数：</td>
			<td style="text-align: center;" >
				<x:out select="$xmlData/data/cooperative/employment" />
			</td>
			<td   align="right" width="20%">合作社人均收入：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/income" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">科特派创业链数量：</td>
			<td colspan="3">
			省级<span style="text-decoration: underline;"><x:out select="$xmlData/data/cooperative/shengji_count" /></span>、
			市级<span style="text-decoration: underline;"><x:out select="$xmlData/data/cooperative/shiji_count" /></span>、
			县级<span style="text-decoration: underline;"><x:out select="$xmlData/data/cooperative/xianji_count" /></span>
			</td>
		</tr>
		<%-- <tr>
			<td style="text-align: right;">
				<x:out select="$xmlData/data/cooperative/shengji_count" />
			</td>
			<td style="text-align: right;">
				<x:out select="$xmlData/data/cooperative/shiji_count" />
			</td>
			<td style="text-align: right;">
				<x:out select="$xmlData/data/cooperative/xianji_count" />
			</td>
			
		</tr> --%>
		<tr>
			<td   align="right" width="20%">是否成立领导机构：</td>
			<td  align="center">
				<x:out select="$xmlData/data/cooperative/is_setup_name" />
			</td>
			<td   align="right" width="20%">县（区）支持经费额：</td>
			<td  style="text-align: center;">
				<x:out select="$xmlData/data/cooperative/fund" />
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%">县科技特派员人数：</td>
			<td style="text-align: center;" >
				<x:out select="$xmlData/data/cooperative/xian_special" />
			</td>
			<td   align="right" width="20%">服务农户数：</td>
			<td style="text-align: center;" >
				<x:out select="$xmlData/data/cooperative/service_count" />
			</td>
		</tr>
	</table>
 <jsp:include page="../org/prporg_hzdw.jsp">
		<jsp:param value="${param.xmlstr}" name="xmlstr" />
	</jsp:include>
<%-- <div class="t_bar">合作单位信息</div>

<div class="t_bar">合作单位信息1</div>
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
<!-- 	<tr>
		<td class="t_bar" colspan="4">合作单位信息</td>
	</tr>
	<tr>
		<td class="t_bar" colspan="4">合作单位信息1</td>
	</tr> -->
	<tr>
		<td align="right" width="20%"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/org_name1" />
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/address1" />
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td width="30%"><x:out select="$xmlData/data/proposal/lxr_name1" /></td>
	<td align="right" width="20%"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td width="30%"><x:out select="$xmlData/data/proposal/lxr_tel1" /></td>
	</tr>
</table>

<div class="t_bar">合作单位信息2</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<!-- <tr>
		<td    class="t_bar" colspan="4">合作单位信息2</td>
	</tr> -->
	<tr>
		<td align="right" width="20%">单位名称：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/org_name2" />
		</td>
	</tr>
	<tr>
		<td align="right">单位地址：</td>
		<td colspan="3">
			<x:out select="$xmlData/data/proposal/address2" />
		</td>
	</tr>
	<tr>
	<td align="right">联系人：</td>
	<td width="30%"><x:out select="$xmlData/data/proposal/lxr_name2" /></td>
	<td align="right" width="20%">电话：</td>
	<td width="30%"><x:out select="$xmlData/data/proposal/lxr_tel2" /></td>
	</tr>
</table>
 --%>
<div class="t_bar">人员信息</div>
 <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<!-- <tr>
		<td    class="t_bar" colspan="8">人员信息</td>
	</tr> -->
<tr>
		<td  align="right">项目联系人：</td>
		<td  >
			<x:out select="$xmlData/data/proposal/contact_psn_cname" /> 
		</td>
		<td  align="right">联系电话：</td>
		<td  >
			<x:out select="$xmlData/data/proposal/contact_psn_tel" />
		</td>
		<td  align="right">联系手机：</td>
		<td  >
			<x:out select="$xmlData/data/proposal/contact_psn_mobile" />
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
			<x:out select="$xmlData/data/proposal/contact_psn_email" />
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/proposal/fzr_psnname" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/proposal/fzr_tel" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/proposal/fzr_mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/proposal/fzr_mail" /></span>
		</td>
	</tr> 
</table> 
<script type="text/javascript">

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function setProjectPlace(op){
	var address = $("#address_value").val();
	if(op) address = '${address}';
	$("#address_name_other").removeClass("required");
	if(address == '02'){
		$("#address_name_other_span").show();
		$("#address_name_other").css("display","");
		$("#address_name_other").addClass("required");
	}else{
		$("#address_name_other_span").hide();
		$("#address_name_other").removeClass("required");
		$("#address_name_other").val("");
	}
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

</script>

